"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useWidgetName = useWidgetName;
var _vue = require("vue");
var _xeUtils = _interopRequireDefault(require("xe-utils"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function useWidgetName(props) {
  const computeKebabCaseName = (0, _vue.computed)(() => {
    const {
      renderOpts
    } = props;
    return renderOpts ? _xeUtils.default.kebabCase(renderOpts.name) : '';
  });
  return {
    computeKebabCaseName
  };
}